

<div class="tablas-info">
    <div class="tabla-titulo">
        <h2><strong>Listado General de Salidas</strong></h2>
          <div class="tabla-buttons">
            <div class="searchInput">
                <i class="fa fa-search"></i>
                <input type="text" class="search-query search" placeholder="Buscar..."/>
            </div>

            <a class="button-adicional" id="dropdownMenu2" data-toggle="dropdown" rel="tooltip" data-placement="top" data-original-title="Mas Acciones">
                <i class="fa fa-cog"></i>
            </a>
            <a class="button-adicional" href="#" data-toggle="collapse" data-target="#tabla-data" rel="tooltip" data-placement="top" data-original-title="Colapsar">
                <i class="fa fa-chevron-down"></i>
            </a>
            <a class="button-adicional" href="#" rel="tooltip" data-placement="top" data-original-title="Ayuda">
                <i class="fa fa-question-circle"></i>
            </a>

            <%= link_to busqueda_rts_path, class: "btn btn-primary btn-xs" do %>
                <i class="fa fa-plus"></i> Generar salida
            <% end %>
        </div>

 
    </div>

    <div id="tabla-data" class="in">
        <div class="table-responsive">
            <table id="tblData" class="table table-striped table-hover table-datos">
                <thead>
                    <tr>
                        <th>No Salida</th>
                        <th>Fecha Salida</th>
                        <th>Proc. Operacion</th>
                        <th>Hora Procesado</th>
                        <th>Cliente</th>
                        <th>Proveedor</th>
                        <th>Fecha Entrega</th>
                        <th>Dias en Bodega</th>
                        <th>Rt Afectado</th>
                        <th></th>
                    </tr>
                </thead>

                <tbody>
                  <% @salidas.each do |salida| %>
                  <tr><td><%= link_to salida.id , salida %></td>
                  <td><%= l salida.fecha_de_orden, :format => :short if salida.fecha_de_orden %></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td><%= salida.receiving_ticket.id if salida.receiving_ticket %></td>
                    <td>
                        <%= link_to edit_salida_almacen_path(salida), :rel => "tooltip", "data-placement" => "top", "data-original-title" => "Ver archivos PDF", :class => "btn btn-default btn-xs" do %>
                            <i class="fa fa-file"></i>
                        <% end %>
                      <% unless salida.receiving_ticket.nil? %>
                        <%= link_to "Salida Items", salida_items_path(salida) ,:class => "btn btn-info btn-xs" %></td>
                      <% end %>
            </tr>
                  <% end %>
                </tbody>
            </table>
        </div>
    </div>
</div>

